package com.xiangxiangjd.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author 肖守凯
 * @since 2021-05-05
 */
@Data
@TableName("answer")
@ApiModel(value="Answer对象", description="")
public class Answer extends Model<Answer> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type= IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "答案名称")
    @TableField("answer_key")
    private String answerKey;

    @ApiModelProperty(value = "答案值")
    @TableField("answer_value")
    private String answerValue;

    @ApiModelProperty(value = "题目id")
    @TableField("topic_id")
    private String topicId;

    @ApiModelProperty(value = "答案序号")
    @TableField("answer_sort")
    private String answerSort;

    @ApiModelProperty(value = "用户答案")
    @TableField("answer_user")
    private String answerUser;

    /**
     * 这矩阵题 进行校验不 适用于 单选多选题
     */
    @ApiModelProperty(value = "是否必答")
    @TableField("answer_is")
    private String   answerIs;
}
